/* 
 * File:   main.cpp
 * Author: bastien
 *
 * Created on 12 octobre 2010, 11:44
 */

#include <cstdlib>
#include <iostream>

#include "../Mutex/MutexAble.h"
#include "../Thread/ThreadAble.h"

using namespace std;

/*
 * 
 */


class prout : public MutexAble{
public:
    prout(){
        Lock;
        cout<<"prout"<<endl;}
    ~prout(){}
};

class mythread: public ThreadAble{
public:
    mythread(){}
    ~mythread(){}

    void* exec(){
        cout << "overloading done !" << endl;
        sleep(2);
        cout<< "exiting"<<endl;

        return 0;
    }
};

int main(int argc, char** argv)
{

    prout p;

    mythread t;

    t.run();

    t.join();

    return 0;
}

